package com.csd.dto;


import java.io.Serializable;

/**
 * @ Author :lihainan
 * @ ClassNmae :UserResult
 * @ Description :TODO
 * @ Date :2020/12/22
 * @ Version 1.0
 */

public class ActionResult implements Serializable {

    private Integer statusCode; //响应码
    private String msg;//短消息
    private Object data;//响应携带的对象
    private int code;


    public ActionResult() {
    }

    public ActionResult(Integer statusCode, String msg, Object data, int code) {
        this.statusCode = statusCode;
        this.msg = msg;
        this.data = data;
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "UserResult{" +
                "statusCode=" + statusCode +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
